<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>吃鸡竞技管理系统</title>
	<%@ include file="/view/common/tags.jsp"%>
    <style type="text/css">
         html {
            overflow: hidden;
        }
    </style>
</head>
<body class="hold-transition skin-blue sidebar-mini fixed">
<div class="wrapper">
<!-- Main Header -->
<header class="main-header">
    <!-- Logo -->
    <a href="#" class="logo">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <span class="logo-mini"><b>G</b>ts</span>
        <!-- logo for regular state and mobile devices -->
        <span class="logo-lg"><b>吃鸡竞技管理系统</b></span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">切换导航</span>
        </a>

        <!-- Navbar Right Menu -->
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">

                <!-- User Account Menu -->
                <li class="dropdown user user-menu">
                    <!-- Menu Toggle Button -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <!-- The user image in the navbar-->
                        <img src="${sysManagerV1}/content/ui/img/photos/gts.jpg" class="user-image" alt="User Image">
                        <!-- hidden-xs hides the username on small devices so only the image appears. -->
                        <span class="hidden-xs">${user.staffAccount }</span>
                        <input type="hidden" id="staffId" value="${user.rowId}" />
                        <input type="hidden" id="staffAccount" value="${user.staffAccount}" />
                    </a>
                    <ul class="dropdown-menu">
                        <!-- The user image in the menu -->
                        <li class="user-header">
                            <img src="${sysManagerV1}/content/ui/img/photos/gts.jpg" class="img-circle" alt="User Image">
                            <p>
                                ${user.staffAccount }
                            </p>
                        </li>
                        <!-- Menu Body -->
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="pull-left password_page btn btn-default btn-sm ">

                            </div>
                            <!-- <div class="pull-center password_page1 btn btn-default btn-sm ">
						
                            </div> -->
                            <div class="pull-right col-xs-3">
                                <a href="javascript:void(0);" onclick="logout()" class="btn btn-default btn-sm">退出</a>
                            </div>
                        </li>
                    </ul>
                </li>
                <!-- Control Sidebar Toggle Button -->
                <li>
                    <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                </li>
            </ul>
        </div>
    </nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel (optional) -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="${sysManagerV1}/content/ui/img/photos/gts.jpg" class="img-circle" alt="用户头像">
            </div>
            <div class="pull-left info">
                <p>${user.staffAccount }</p>
                <!-- Status -->
                <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
            </div>
        </div>
        <!-- search form (Optional) -->

        <!-- /.search form -->
        <!-- Sidebar Menu -->
        <ul class="sidebar-menu">
		
        </ul>
        <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper"  id="content-wrapper">
    <div class="content-tabs">
        <button class="roll-nav roll-left tabLeft" onclick="scrollTabLeft()">
            <i class="fa fa-backward"></i>
        </button>
        <nav class="page-tabs menuTabs tab-ui-menu" id="tab-menu">
            <div class="page-tabs-content" style="margin-left: 0px;">

            </div>
        </nav>
        <button class="roll-nav roll-right tabRight" onclick="scrollTabRight()">
            <i class="fa fa-forward" style="margin-left: 3px;"></i>
        </button>
        <div class="btn-group roll-nav roll-right">
            <button class="dropdown tabClose" data-toggle="dropdown">
                页签操作<i class="fa fa-caret-down" style="padding-left: 3px;"></i>
            </button>
            <ul class="dropdown-menu dropdown-menu-right" style="min-width: 128px;">
                <li><a class="tabReload" href="javascript:refreshTab();">刷新当前</a></li>
                <li><a class="tabCloseCurrent" href="javascript:closeCurrentTab();">关闭当前</a></li>
                <li><a class="tabCloseAll" href="javascript:closeOtherTabs(true);">全部关闭</a></li>
                <li><a class="tabCloseOther" href="javascript:closeOtherTabs();">除此之外全部关闭</a></li>
            </ul>
        </div>
        <button class="roll-nav roll-right fullscreen" ><i class="fa fa-arrows-alt"></i></button> 
    </div>
    <div class="content-iframe " style="background-color: #ffffff; ">
        <div class="tab-content " id="tab-content">
            
        </div>
    </div>
    <!-- /.content -->
</div>
<footer class="main-footer">
     2018测试版&nbsp;&nbsp;吃鸡竞技管理系统&nbsp;&nbsp;&nbsp;&nbsp;版权所有 &copy;西安甘棠树网络科技有限公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</footer>
<!-- /.content-wrapper -->
<!-- Main Footer -->
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
    <!-- Create the tabs -->

    <!-- Tab panes -->
    <div class="tab-content">
        <!-- Home tab content -->
        <div class="tab-pane" id="control-sidebar-home-tab">

            <!-- /.control-sidebar-menu -->
        </div>
        <!-- /.tab-pane -->
        <!-- Stats tab content -->
        <div class="tab-pane" id="control-sidebar-stats-tab">状态面板设置</div>
        <!-- /.tab-pane -->
        <!-- Settings tab content -->
        <div class="tab-pane" id="control-sidebar-settings-tab">
            <form method="post">
                <h3 class="control-sidebar-heading">常规设置</h3>
                <div class="form-group">
                    <label class="control-sidebar-subheading">
                        Report panel usage
                        <input type="checkbox" class="pull-right" checked>
                    </label>
                    <p>
                        Some information about this general settings option
                    </p>
                </div>
                <!-- /.form-group -->
                <div class="form-group">
                    <label class="control-sidebar-subheading">
                        Allow mail redirect
                        <input type="checkbox" class="pull-right" checked>
                    </label>
                    <p>
                        Other sets of options are available
                    </p>
                </div>
                <!-- /.form-group -->
                <div class="form-group">
                    <label class="control-sidebar-subheading">
                        Expose author name in posts
                        <input type="checkbox" class="pull-right" checked>
                    </label>
                    <p>
                        Allow the user to show his name in blog posts
                    </p>
                </div>
                <!-- /.form-group -->
                <h3 class="control-sidebar-heading">Chat Settings</h3>
                <div class="form-group">
                    <label class="control-sidebar-subheading">
                        Show me as online
                        <input type="checkbox" class="pull-right" checked>
                    </label>
                </div>
                <!-- /.form-group -->
                <div class="form-group">
                    <label class="control-sidebar-subheading">
                        Turn off notifications
                        <input type="checkbox" class="pull-right">
                    </label>
                </div>
                <!-- /.form-group -->
                <div class="form-group">
                    <label class="control-sidebar-subheading">
                        Delete chat history
                        <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
                    </label>
                </div>
                <!-- /.form-group -->
            </form>
        </div>
        <!-- /.tab-pane -->
    </div>
</aside>
<div class="control-sidebar-bg"></div>
</div>
<%@ include file="/view/common/footer.jsp"%>
<script type="text/javascript">
    $(function() {
        var  result_url ='${result_url}';
        addTabs({id: '10008', title: '欢迎页面', close: false, url: "/view/welcomeScreenNew.jsp?flag=${flag}"});
        App.fixIframeCotent();
        //修改密码
        var menus2 = [{ id:'1',
                        text:'修改密码',
                        url: "${sysManagerV1}/staff/passwordUpdate",
                        targetType: "iframe-tab"
                    }];

        //super ui
        $('.sidebar-menu').sidebarMenu({ data: $.parseJSON('${menus}'), param: { strUser: 'admin' } });
        $('.password_page').sidebarMenu({ data: menus2, param: { strUser: 'admin' } });
        $(".nav-link").click(function(){
            $(this).addClass("on");
            $(".nav-link").not($(this)).removeClass("on");

        });
        var userAgent = navigator.userAgent;
        if (!((userAgent.indexOf("Firefox") >= 0) || (userAgent.indexOf("Chrome") >= 0) || (userAgent.indexOf("Opera") >= 0) || (userAgent.indexOf("Safari") >= 0) || (userAgent.indexOf("Netscape") >= 0))) {
        	$(".fullscreen").hide();
        }
        
        sessionStorage.setItem("token", "${token}")
    });
    
    function logout(){
    	$.ajax({
            url: "${sysManagerV1}/logout",
            type: "post",
            cache: false,
            data: {token: sessionStorage.getItem("token")},
            dataType:"json",
            async:false,
            success: function(data) {
                if (data.code == 0) { 
                    window.location.href="${sysManagerV1}/";
                }
            },
            error: function(err){
                alert(JSON.stringify(err));
            }
        });
    }
</script>
</body>
</html>
